{include file="public/header" title="商品管理列表"}
<body>
<table class="table table-hover text-center">
    <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
        <th width="15%">商品名称</th>
        <th>图片</th>
        <th>价格</th>
        <th>分类名称</th>
        <th>上架时间</th>
        <th>推荐</th>
        <th>热门</th>
        <th>下架</th>
        <th width="310">操作</th>
    </tr>
    {volist name="list" id='v'}
    <tr>
        <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="" />{$v.id}</td>
        <td>{$v.name}</td>
        <td width="10%"><img src="__STATIC__/{$v.photo_x}" alt="" width="70" height="50" /></td>
        <td>{$v.price}</td>
        <td>{$v.cname}</td>
        <td>{$v.addtime}</td>
        <td><font color="#00CC99">{$v.is_show?'是':'否'}</font></td>
        <td><font color="#00CC99">{$v.is_hot?'是':'否'}</font></td>
        <td><font color="#00CC99">{$v.is_down?'是':'否'}</font></td>
        <td><div class="button-group"> <a class="button border-main" href="{:url('goodAdd',['id'=>$v['id']])}"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="{:url('goodsDel',['id'=>$v['id']])}" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a>
            <a class="button border-red" href="{:url('goodRedel',['id'=>$v['id']])}" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 还原</a>
        </div></td>
    </tr>
    {/volist}
    <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
        全选 </td>
    <td colspan="9" style="text-align:left;padding-left:20px;"><a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 删除</a> <a href="javascript:void(0)" style="padding:5px 15px; margin:0 10px;" class="button border-blue icon-edit" onclick="sorts()"> 排序</a> 操作：
        <select name="ishome" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeishome(this)">
            <option value="">首页</option>
            <option value="1">是</option>
            <option value="0">否</option>
        </select>
        <select name="isvouch" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeisvouch(this)">
            <option value="">推荐</option>
            <option value="1">是</option>
            <option value="0">否</option>
        </select>
        <select name="istop" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeistop(this)">
            <option value="">下架</option>
            <option value="1">是</option>
            <option value="0">否</option>
        </select>
    </td>
    </tr>
    <tr>
        <td colspan="9"></td>
    </tr>
</table>
</body>
</html>